<?php
/**
 *UserValidate
 * @author tan bing
 * @date 2021-08-10 14:53
 */

namespace Modules\User\Validate\Admin;


use Modules\User\Validate\BaseValidate;

class UserLevelValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'required|integer',
        'name' => 'required',
    ];

    protected $message = [
        'id.required' => 'ID不能为空',
        'id.integer' => 'ID参数错误',
        'name.required' => '名称不能为空',
    ];

    protected $scene = [
        'add' => ['name'],
        'status' => ['id', 'status'],
    ];
}